package 狂神多线程;
//创建线程的方式2:实现runnable接口,重写run方法,执行线程需要丢入runnable接口实现类
public class TestThread3 implements Runnable{
    @Override
    public void run() {
        for (int i=1;i<1000;i++){
            System.out.println("+++++++");
        }
    }

    public static void main(String[] args) {
        TestThread3 thread3 = new TestThread3();
        Thread thread = new Thread(thread3);
        thread.start();
        for (int i=1;i<1000;i++){
            System.out.println("--");
        }
    }
}
